home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / domacnost a kancelar / joomla / Joomla_1.5.4-Stable-Full_Package.exe / includes / database.php < prev    next >
PHP Script  |  2008-07-06  |  720b  |  26 lines

  1. <?php
  2. /**
  3.  * Legacy Mode compatibility
  4.  * @version        $Id: database.php 10381 2008-06-01 03:35:53Z pasamio $
  5.  * @package        Joomla.Legacy
  6.  * @deprecated    As of version 1.5
  7.  */
  8.  
  9. // no direct access
  10. defined( '_JEXEC' ) or die( 'Restricted access' );
  11.  
  12. require_once( dirname(__FILE__)  .'/../libraries/loader.php' );
  13.  
  14. jimport( 'joomla.database.database' );
  15. jimport( 'joomla.database.database.mysql' );
  16. /**
  17.  * Legacy class, derive from JDatabase instead.
  18.  *
  19.  * @package        Joomla
  20.  * @deprecated As of version 1.5
  21.  */
  22. class database extends JDatabase {
  23.     function __construct ($host='localhost', $user, $pass, $db='', $table_prefix='', $offline = true) {
  24.         parent::__construct( 'mysql', $host, $user, $pass, $db, $table_prefix );
  25.     }
  26. }